﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strive.Util.Text;
using Strive.Util.Logging;
using Strive.Core.Validations;
using Strive.Core.Service;
using Strive.Core.Translators;
using Strive.Util.Maths;
using Strive.Reflection;
using Strive.Aspects;
using OTA.Notification.Entity;
using OTA.Notification.Entity.Adapter;
using Strive.DataAccess;

namespace OTA.Notification.Entity.Rule
{
    [Serializable]
    [Table(Name = "MSG_SEND_RULE_CONFIG")]
    public class MsgRuleDetailConfigBean
    {
        #region Private 成员

        private int _id;
        private int _rule_config_seq_id;

        private string _msg_type_code = String.Empty;

        private string _successd_flag = String.Empty;
        private string _failed_flag = String.Empty;
        private string _need_flag = String.Empty;

        #endregion

        #region Public 成员

        [Column(Name = "RULE_ID"), PK]
        public int RuleID
        {
            get { return _id; }
            set
            {

                _id = value;

            }
        }

        [Column(Name = "RULE_CONFIG_SEQ"), PK]
        public int RuleConfigSeqID
        {
            get { return _rule_config_seq_id; }
            set
            {

                _rule_config_seq_id = value;

            }
        }

        [Column(Name = "MSG_TYPE_CODE")]
        public string MsgTypeCode
        {
            get { return _msg_type_code; }
            set
            {

                if (value == null) return;
                if (_msg_type_code as object == null || !_msg_type_code.Equals(value))
                {
                    _msg_type_code = value;
                }
            }
        }

        [Column(Name = "SUCCESSED_FLAG")]
        public string SuccessedFlag
        {
            get { return _successd_flag; }
            set
            {

                if (value == null) return;
                if (_successd_flag as object == null || !_successd_flag.Equals(value))
                {
                    _successd_flag = value;
                }
            }
        }

        [Column(Name = "FAILED_FALG")]
        public string FailedFlag
        {
            get { return _failed_flag; }
            set
            {

                if (value == null) return;
                if (_failed_flag as object == null || !_failed_flag.Equals(value))
                {
                    _failed_flag = value;
                }
            }
        }

        [Column(Name = "NEED_FLAG")]
        public string NeedFlag
        {
            get { return _need_flag; }
            set
            {

                if (value == null) return;
                if (_need_flag as object == null || !_need_flag.Equals(value))
                {
                    _need_flag = value;
                }
            }
        }

        #endregion 
    }
}
